
import 'package:flutter/material.dart';

import 'app/login/LoginPapge.dart';
import 'app/login/LoginPhonePapge.dart';

class SplashScreen extends StatefulWidget {
  @override
  _SplashScreenState createState() => _SplashScreenState();
}

class _SplashScreenState extends State<SplashScreen> {
  @override
  void initState() {
    super.initState();
    Future.delayed(Duration(seconds: 2), () {
      Navigator.of(context).pushReplacement(
        MaterialPageRoute(builder: (context) => LoginPhonePapge()),
      );
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white, // 或者设置为你想要的颜色
      body: Container(
        alignment: Alignment.center,
        child: Image.asset('assets/app/app_logo1.png'), // 显示加载动画
      ),
    );
  }
}